﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WAD.WEB.AppCode;
using WAD.Model;
using WAD.DAL;
using System.Text;

namespace WAD.WEB.Client
{
    /// <summary>
    /// 跳转到广告
    /// </summary>
    public partial class to_advert : WebBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = Parse.Int("id", 0);//广告id
            int shareid = Parse.Int("shareid", 0);
            if (id == 0)
            {
                Redirect("index.html");
            }
            //添加广告点击量
            ClientClick.Click(shareid, 2, 0, 1);

            MAdvert m = DaoAdvert.GetEntity(id);
            Redirect(m.url);
        }
    }
}